<!DOCTYPE html>
<html>

<include file="./Application/Admin/View/common/css-js.html"/>

<body class="gray-bg">
<form method="post" action="/index.php/admin/index/pbonus_search">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="btn-group btn-group-sm" style="float:left;">
            <button class="btn btn-default btn-sm" type="button" data-toggle="refresh"><a href="/index.php/admin/index/pbonuslist"><i class="fa fa-refresh"></i></a></button>
        </div>
        <div style="float:left">

            <select onchange="selectChange(this.options[this.selectedIndex].text)" id="select" onchange="selectChange()" name="select" style="width:100px;height:30px;padding:0 5px;">
                <option value="">请选择</option>
                <!--<option value="certificate">员工身份证号</option>-->
                <option value="tel">员工手机号</option>
                <input type="hidden" id="select_content" name="select_name">
            </select>
            <div style="float:right">
                <input type="text"  name="keyword" value="" style="width:300px;height:30Px" placeholder="请输入关键词">
                <span>
            <button class="btn btn-sm btn-primary" type="submit" id="search" onclick="searchuser()"> 搜索</button>
        </span>
            </div>

        </div>
    </div>

</form>
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>充值奖金列表</h5>
                </div>
                <div class="ibox-content">

                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="20">
                        <thead>
                        <tr>
                            <th data-toggle="true">员工手机号</th>
                            <th>员工工号</th>
                            <th>客户手机号</th>
                            <th>推荐人手机号</th>
                            <th>充值人工号</th>
                            <th>充值奖金</th>
                            <th>所得奖金</th>
                            <th>充值时间</th>
                        </tr>
                        </thead>
                        <tbody >
                        <volist name="user" id="vo">
                            <tr>
                                <td>{$vo.utel}</td>
                                <td>{$vo.job_no}</td>
                                <td>{$vo.tel}</td>
                                <td>{$vo.phone}</td>
                                <td>{$vo.recharge_no}</td>
                                <td>{$vo.recharge}</td>

                                <td>{$vo.moneys}</td>
                                <td>{$vo.ctime|date='Y-m-d H:i:s',###}</td>
                            </tr>
                        </volist >
                        </tbody>
                        <tfoot>
                        <td colspan="20" style="text-align: center;font-size: 15px">
                            {$page}
                        </td>
                        </tfoot>
                    </table>

                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function() {

        $('.footable').footable();

    });
    function selectChange(select)
    {
        document.getElementById("select_content").value=select;
    }
    function searchuser()
    {
        var select = document.getElementById("select");
        var index = select.selectedIndex;
        var value = select.options[index].value;
        if(value=="")
        {
            document.getElementById("search").disabled="ture";
        }
    }
</script>

</body>

</html>
